package com.rgh.pecunia.core.util;

import java.util.Calendar;
import java.util.Date;

public class DateUtil {

	/**
	 * Returns the Date object representing the first day of the month
	 * 
	 * @return
	 */
	public static Date getFirstDayOfMonth() {
		Calendar cal = Calendar.getInstance();
		cal.set(Calendar.DAY_OF_MONTH, 1);
		cal.set(Calendar.HOUR_OF_DAY, 0);
		cal.set(Calendar.MINUTE, 0);
		cal.set(Calendar.SECOND, 0);
		Date first = cal.getTime();
		return first;
	}
}
